export const mixin = {
  methods: {
    // 输入框数据格式验证，去除script标签
    xssValidFmt (field, val) {
      this[field] = this.$xss(this[field].replace(/<[^>]*>/g, ''))
    }
  }
}
